package com.jsbs.iam.common.core.exception.base;

/**
 * API基础异常
 * 
 * @author junwc
 */
public class ApiBaseException extends RuntimeException
{
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    private String bizCode;

    /**
     * 错误码
     */
    private Integer code;


    /**
     * 错误消息
     */
    private String msg;

    public ApiBaseException() {

    }

    public ApiBaseException(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }


    public ApiBaseException(String msg, Integer code, String bizCode) {
        this.bizCode = bizCode;
        this.code = code;
        this.msg = msg;
    }

    public String getBizCode() {
        return bizCode;
    }

    public void setBizCode(String bizCode) {
        this.bizCode = bizCode;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
